package com.emirates.spring.banzen2;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.hardware.Camera;

public class BanzenPictureCallback implements android.hardware.Camera.PictureCallback {
	
	private Bitmap bitmap;
	private byte[] data;
	
	
BanzenPictureCallback()
{
	bitmap=null;
	data=null;
}
	

@Override
	public void onPictureTaken(byte[] data, Camera camera) {
	this.data=data;
	this.bitmap=BitmapFactory.decodeByteArray(data,0,data.length);		
	}
	
public Bitmap getBitmap()
{
	return this.bitmap;
	}

public byte[] getImageData()
{
	return this.data;
	
}


}
